package com.gan.simple_init.service;

import com.gan.simple_init.model.movie.entity.Movie;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
* @author gbw
* @description 针对表【movie(电影)】的数据库操作Service
* @createDate 2023-10-25 10:09:07
*/
public interface MovieService extends IService<Movie> {

    /**
     * 校验电影信息，没问题返回null
     * @param movie
     * @return
     */
    String validMovieInfo(Movie movie);

    /**
     * 导出模板
     * @param response
     * @throws IOException
     */
    void downloadTemplate(HttpServletResponse response) throws IOException;

    /**
     * 导出数据
     * @param response
     */
    void downloadData(HttpServletResponse response) throws IOException;
}
